import React,{ Component } from 'react';
import { Result, WhiteSpace, Icon, Button, WingBlank } from 'antd-mobile';
import { Link, hashHistory } from 'react-router';


class OrderError extends Component {
    state = {

    }

    clickRetry(){
        hashHistory.goBack();
    }

    render(){
        const errorMessage = (<div>
            <div>无法连接到服务器，请稍后重试</div>
            <Button
                type="primary"
                onClick={this.clickRetry.bind(this)}
            >请重试</Button>
        </div>);
        return (
            <div className="OrderSuccess">
                <WhiteSpace size="xl"/>
                <Result
                    img={<img src="./images/error_icon.png" style={{width: '5rem', height: '5rem'}}/>}
                    title="提交失败"
                    message={errorMessage}
                />


            </div>
        );
    }
}

export default OrderError;